<div ng-controller="styleTypeCtrl">
    <uib-tabset>
        <uib-tab heading="{{dict.name}}" ng-repeat="dict in elementEnum" select="showTab(dict)">
            <table class="table table-bordered table-striped table-hover" style="border-top: none;" >
                <thead class="title">
                <tr>
                    <th class="text-center">NO</th>
                    <th >类型名称</th>
                    <th >AliasName</th>
                    <th >StyleID</th>
                    <th>压盖顺序</th>
                    <!--<th style="width:10px" ng-repeat="i in [1,2,3,4,5,7,8,9,10,11,12,13,14,15,16,17,18,19,20]">{{i}}</th>-->
                    <th style="width:120px" ng-if="$root.hasPower('编辑样式分类')">操作</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-if="dict.pageModel.data.length == 0"><td colspan="100" class="text-center">暂无记录</td></tr>
                <tr ng-repeat="item in dict.pageModel.data" >
                    <td class="text-center">{{$index + 1+dict.pageModel.pageSize*dict.pageModel.pageIndex}}</td>
                    <td>{{item.text}}</td>
                    <td>{{item.name}}</td>
                    <td>{{item.code}}</td>
                    <td>{{item.zIndex}}</td>
                    <!--<td ng-repeat="i in [1,2,3,4,5,7,8,9,10,11,12,13,14,15,16,17,18,19,20]"></td>-->
                    <td ng-if="$root.hasPower('编辑样式分类')">
                        <a href='javascript:void(0)'  ng-click='showEditModal(item)' class='btn btn-xs btn-link'><span class='fa fa-edit'></span>编辑</a>
                        <a href='javascript:void(0)'  ng-click='del(item)' class='btn btn-xs btn-link'><span class='fa fa-trash'></span>删除</a>
                    </td>
                </tr>
                </tbody>
            </table>
            <div class="page-footer clearfix">
                <page page-model="dict.pageModel"></page>
            </div>
        </uib-tab>
        <li class="pull-right">
            <button class="btn btn-primary pull-right" ng-click="showEditModal()" ng-if="$root.hasPower('编辑样式分类')">添加</button>
        </li>
    </uib-tabset>

</div>
